package com.oracle.client;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.oracle.model.User;
import com.oracle.service.UserService;

public class Test {
	public static void main(String[] args) throws Exception {
		User user = new User();
		user.setId(1);
		user.setName("eeee");
		ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
		UserService service = (UserService) ctx.getBean("userService");
		service.addUser(user);
	}
}
